package com.foreknow.demo;

public class Singleton {
    private String name;
    public static Singleton instance = new Singleton();

    public static Singleton getInstance() {
        return instance;
    }

    public static void setInstance(Singleton instance) {
        Singleton.instance = instance;
    }

    private Singleton(){

    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
